// 1. 引入axios模块
import request from '../utils/request'

// 2. 封装方法发送请求
const loginAPI = ({ tel, pwd }) => {
  return request({
    method: 'POST',
    url: '/v1_0/authorizations',
    data: {
      mobile: tel,
      code: pwd
    }
  })
}

// 3. 导出
export {
  loginAPI
}
